// RUN: triton-adapter-opt --triton-to-linalg %s | FileCheck %s

tt.func @test_barrier(%arg0 : !tt.ptr<bf16>, %arg1 : !tt.ptr<bf16>, %arg2 : i32) {
    %0 = tt.addptr %arg0, %arg2 : !tt.ptr<bf16>, i32
    %1 = tt.addptr %arg1, %arg2 : !tt.ptr<bf16>, i32
    %10 = tt.load %0 {cache = 1 : i32, evict = 1 : i32, isVolatile = false}: !tt.ptr<bf16>
    tt.store %1, %10 : !tt.ptr<bf16>
    gpu.barrier
    tt.return
}

//CHECK-LABEL: test_barrier
//CHECK: gpu.barrier
